import { Action } from "@/mdesign-lib/mdesign-app.umd.js";
import { LingYunWindow } from "../customWindows/lingyun";
import { ActionKey } from "@/mdesign-lib/mdesign-app.umd.js";

export class LYAction extends Action {
  keyName = "LY" as ActionKey;
  desc = "LY";

  async run() {
    const projectId = app.activeProject!.id;
    const res = await LingYunWindow.popup({ projectId });
    if (res.success) {
      app.$notify({ type: "success", title: "成功", message: "保存成功" });
    }
  }

  onSysMenuClick() {
    this.run();
  }
}
